package asteroids;

import java.awt.Color;
import java.awt.Image;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.net.MalformedURLException;
import java.net.URL;

import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;

//import asteroids.Asteroids_Game;
//import asteroids.Asteroids_Game2;

public class Asteroids_Game extends JFrame {
	JPanel primaryPanel;

	public Asteroids_Game() {
		primaryPanel = new AsteroidsJPanel(500, 500);
		primaryPanel.setBackground(Color.white);
		primaryPanel.setFocusable(true); // Needed for key events
		primaryPanel.setSize(250, 250);
		setBackground(Color.pink);
		setSize(500, 500);
		setContentPane(primaryPanel);
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent event) {
				System.exit(0);
			}
		});
		setVisible(true);
	}

	public static void main(String[] args) {
		new Asteroids_Game();

	}
}
